import request from '@/utils/request'

//更新
export const admininfoUpService = ({ id, name, phone, address, sex, age }) => {
  return request.put('admininfo/up', {
    id,
    name,
    phone,
    address,
    sex,
    age
  })
}

//更新头像
export const adminAvatarUpService = ({ id, avatar }) => {
  return request.patch('admininfo/up', {
    id,
    avatar
  })
}
//更新密码
export const adminpasswordUpService = ({ id, password }) => {
  return request.patch('admininfo/uppassword', {
    id,
    password
  })
}
